line = 'asdf fjdk; afed, fjek,asdf, foo'
import re

re.split(r'[;,\s]\s*', line)

fields = re.split(r'(;|,|\s)\s*', line)  # 这种方式会将用于分割的分割符号展现出来['asdf', ' ', 'fjdk', ';', '', ',', '', ',', '', ',', 'afed', ',', 'fjek', ',', 'asdf', ',', 'foo']


values = fields[::2]
delimiters = fields[1::2] + ['']
''.join(v+d for v,d in zip(values, delimiters))

fields1 = re.split(r'(?:,|;|\s)\s*', line)  #（?:）表示不捕获分组

